#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<queue>
using namespace std;

void test_priority_queue()
{
	priority_queue<int> pq;
	pq.push(1);
	pq.push(5);
	pq.push(2);
	pq.push(4);
	pq.push(0);
	while (!pq.empty())
	{
		cout<<pq.top()<<" ";
		pq.pop();
	}
	cout << endl;
}
int main()
{
	test_priority_queue();
	return 0;
}